package com.wise.schedule.sample1.task;

import org.springframework.context.annotation.Profile;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@Profile("sample1")
public class ScheduleTask {

    /**
     * 每5秒种调度一次
     * 0 15 10 15 * ?
     */
    @Scheduled(cron = "0 15 10 15 * ?")
    public void simpleScheduleTask() {
        System.out.println("开始调度 0 0 0,4,8,12,16,20 15 * ? ");
    }
}
